package me.nibo.baidumap;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 地址信息
 * @author nibo
 */
public class AddressInfo implements Serializable {
    // 经度
    private double longitude;
    // 纬度
    private double latitude;
    // 图片
    private int image;
    // 名称
    private String name;
    // 距离
    private String distance;
    // 点赞数
    private int zan;

    public static List<AddressInfo> infos = new ArrayList<>();

    static {
        infos.add(new AddressInfo(104.084737, 30.664381, R.mipmap.a01, "乐天量贩KTV(总府路店)",
                           "距离209米", 1456));
        infos.add(new AddressInfo(104.08559, 30.663977, R.mipmap.a02, "三阶密室逃脱",
                           "距离897米", 456));
        infos.add(new AddressInfo(104.085605, 30.663946, R.mipmap.a03, "成都王府井电影城",
                           "距离249米", 1456));
        infos.add(new AddressInfo(104.084905, 30.664296, R.mipmap.a04, "夫妻肺片总店",
                           "距离679米", 1456));
    }

    public AddressInfo() {
    }

    public AddressInfo(double longitude, double latitude, int image, String name, String distance, int zan) {
        this.longitude = longitude;
        this.latitude = latitude;
        this.image = image;
        this.name = name;
        this.distance = distance;
        this.zan = zan;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public int getImage() {
        return image;
    }

    public void setImage(int image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public int getZan() {
        return zan;
    }

    public void setZan(int zan) {
        this.zan = zan;
    }
}
